XmlFormat ecodes the class name if the passed data is an object