Unsigned class and VarInt encoding