Use unicodecsv to write out utf-8 csv files

When I ran this in prod. I got unicode errors. Because of an urgent need to publish, I updated this to use the unicodecsv object instead of the usual csv writer.