UTF-8 support for CSVExporter

Hello, I had a problem with exporting UTF-8 encoded headers with the CSVExporter, so I came up with this fix.