fix CSV export for encoded chars