Use binary mode when opening files.