shell: Test hash encoding/decoding.
FIXUP: trailing slash.