Replaced encode/decode_signed_byte() with types.signed()/unsigned().