Do you need to destructure the return value here? In `kernel/common/encoding.rb:506` the index value is just accessed using `EncodingMap[key][1]`, so we might want to do the same.

Another thing, I don't believe you need to `upcase` the name, as `#name` should always return the "official" (uppercase) name.