Add escaping to Groovy templates.