Fix S3 upload on Windows

S3 upload on Windows was corrupting the file
Merge pull request #14 from jdmorani/master

Fix S3 upload on Windows