Index: wp-includes/class-wp-theme.php
===================================================================
--- wp-includes/class-wp-theme.php	(revision 21685)
+++ wp-includes/class-wp-theme.php	(working copy)
@@ -794,7 +794,7 @@
 	 * @return string URL to the stylesheet directory.
 	 */
 	public function get_stylesheet_directory_uri() {
-		return $this->get_theme_root_uri() . '/' . $this->stylesheet;
+		return $this->get_theme_root_uri() . '/' . rawurlencode( $this->stylesheet );
 	}
 
 	/**
@@ -814,7 +814,7 @@
 		else
 			$theme_root_uri = $this->get_theme_root_uri();
 
-		return $theme_root_uri . '/' . $this->template;
+		return $theme_root_uri . '/' . rawurlencode( $this->template );
 	}
 
 	/**
