update encoding of file to utf-8