Make Python and C encodings match, even if they're wrong