Escape characters in custom forms.