fix unicode error with xmlformat