Use Encoding.compatible?
Make encoding indexes match exactly to MRI