Fix off-by-one error in p2pkh decoding function