Specify UTF-8 encoding and newline='' when opening a catalogue file.