Fixed PHP-872: Driver should prevent \0 characters in keys, collection and database names.
Merged pull request #495