Fix unicode into csv

* Convert values to utf-8 before passing to csv writer