added auto base64 encode / decode of json dir listing.