Fix a unicode encoding bug on registrant export.