This should be opened in binary mode, because windows.