Force file IO to use binary mode to support Win32