Restore some lost RubyEncoding methods being used in the wild.