Fix loading of file URLs with spaces
Merge pull request #3280 from metajack/path-with-spaces

Fix loading of file URLs with spaces