fix spaces in url when uploading a file (a linux issue)