When the grid has been serialized back to XML, special characters in cells can corrupt the final XML. To prevent such issue you can force the usage of CDATA during serialization. ( CDATA makes any content safe, so the final XML will be valid in any case ) This mode can be enabled with the setSerializationLevel command
grid.setSerializationLevel(false,false,false,false,false,true);