I see that ```VAR.zfname.decode(encoding)``` is called in multiple places... maybe it can be extracted into a helper function ```_filesystemEncode(VAR)``` which does the appropriate conversion in a single place.