convert to utf8 for array