chat xml escape fix