fix xtemplate on encoding