SP-1254] - Regression PIR-994

Fixed encoding issue with Metadata domain save, by removing the unneeded inputstream recreation