change output file from unicode to utf8 codeset