URIEncoding the filepaths.

I ran into a problem where spaces in file paths caused an error.

src: ["tag/my tag/index.html"]

Encoding the string with encodeURI() solved the problem.