(cherry picked from commit c6e4014136aa3d81ecd4288150b3eefca9849b0b)
See https://github.com/facebook/rocksdb/wiki/Prefix-Seek-API-Changes
Use sys.getfilesystemencoding() for encoding
Easier to use than always calling 'sphinx-build ...'