Taking care of encoding in csv export.