force bson ObjectId to a string before json serialisation