tags to utf8 format