Escape quotes in templates.