Port the override codec handling away from QTextCodec
This now uses strings rather than codec objects, which also avoids possible problems the new codec types not being entirely stateless.
This now uses strings rather than codec objects, which also avoids possible problems the new codec types not being entirely stateless.