Fix the conversion for mongodb.Binary