Fix #433 credential_regex not escaping special characters for Mongoid & MongoMapper

Properly escape regex strings when doing `find_by_credentials` in Mongoid and MongoMapper. Fixes #433.

Not sure where to add tests for this but I don't think it's necessary as it's a relatively simple fix.