working script to convert to utf8