Use the UTF-8 encoding for csv files.

Do the encoding on file write rather than on string format.
Merge pull request #17 from kowey/unicode

Use the UTF-8 encoding for csv files.