Multi part uploads with spaces

This patch enables the upload and download of files with spaces in their filename.