py3: make encodefun in store.py compatible with py3k
This ensures that the filename encoding functions always map bytestrings
to bytestrings regardless of python version.
#require docutils gettext $ $TESTDIR/check-gendoc zh_TW checking for parse errors