Fix binary file open mode (CRLF corruption on Windows)