encodeURI all filenames before phantomjs uses them

Refs #86
Merge pull request #94 from andylolz/86-non-ascii-filenames

encodeURI all filenames before phantomjs uses them