decode value to utf8 before xml encoding