Add escaping in tpl files