Formatters should utf-8 encode contents before writing to a file