Fix decoding bug; add %k for keyid.