utf8 encode of file contents