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