Bug related with file uploading in Windows fixed.

This bug was causing a text file uploaded in a Windows system to be
recognized as a binary file. As a result, plain text files (e.g. CSV
files) were treated as compressed files that the uncompressing API
didn't recognize.