[AI-401] Fixes escaping in XForms