Open uploaded files in binary mode on Windows.