Correcting encoding error preventing metadata unmarshalling