Use sys.getfilesystemencoding() for encoding
Python bindings for RocksDB. See http://pyrocksdb.readthedocs.org for details