Cache: encode directory names in __ENCODING__ - close #3