MARC files need to be opened in binary mode; Python 3's automatic decoding to str using system's standard encoding is the wrong behavior...