Encode a directory listing in Space.