node module: generate and validate mongodb objectId strings without dependencies