Implemented encoding of directories (via tarballs)