Escape special chars in yasnippet templates.