fix to convert metadata to unicode before persisting in mongo