fixed bug that corrupted file uploads in windows