make mongodb uri parsable, c.f. http://docs.mongodb.org/manual/reference/connection-string/