We can use `int binary_enc = rb_ascii8bit_encindex();` here instead to skip the lookup since the `ascii8bit`, `usascii` and `utf8` encodings have fixed positions in the encoding table.