always open files in binary mode, fixes some sys tests (not sure if that's a problem)