MXGDA-923 create writeToXML, createFromXML methods that use encoding

 * allow character encodings