#4141 Fix /txs/encode endpoint