Explicitly specify encoding when generating string for NSTextView