Make codepage indices smarter.