Encode as utf-8 user names before writing them to the CSV file (#890)

This fixes error #4 on janet's list.