re-encode file to utf-8