convert socket output to utf8