encodeURI all filenames before phantomjs uses them

Refs #86