fix utf8 encode xml input