Stop checking encoding names
Stop checking encoding names

Comparing the names is much less efficient than
comparing the instance directly.

It may also change in the future: https://bugs.ruby-lang.org/issues/18576
jasoncodes/filter_io