Open in binary mode (for Windows).