enforce UTF-8 when writing files