generalize mongodb connection string

includes urls containing \W characters
Merge pull request #766 from mrocklin/general-mongo-url

generalize mongodb connection string