[BISERVER-10202/10203] Fix encoding when importing metadata.