Simplify encoding of unsigned integers