Data passed into the XMLEncoder is not allowed to be an object.