Add encode-addr and decode-addr comands.