Fix loading of file URLs with spaces