utf8 encode widget data