Use the UTF-8 encoding for csv files.

Do the encoding on file write rather than on string format.