Replication of metadata objects should not change the content
During the replication of metadata object, Metacat changed the InputStream object to String base on the encoding declared in xml prolog. However, if the encoding declaration is wrong, the content will be modified. The code was changed to save the input stream object directly.
Please see https://redmine.dataone.org/issues/6568