Use UTF8 encoding when writing files.