PHP-1265: More descriptive errors for invalid db/collection names

https://jira.mongodb.org/browse/PHP-1265
This improves on the old `mongoclient-selectdb.phpt` test.