add SIGNATURE encoding, with test