added .directory and added decode/encode of utf-8/unicode