remove encoding from tpl