Treat the database name like a Filesystem path.

If the database name is Unicode, encode it using the filesystem encoding
(probably ASCII). LMDB defines no encodings for database names.