make identity ok for MongoDB storage.