Fix UnicodeEncodeError in csv export: Bug 1044094