Allowed encoding of VarInts and Strings to ByteBuf