Fixed (I think) issue with uploading files with spaces in the filename