Fix UnicodeDecodeError in relations_report command for licences

Error when write to dummy csv file.