fixed bug that corrupted file uploads in windows
Merge pull request #78 from pmiller624/upload-fix

fixed bug that corrupted file uploads in windows