harsher handling of bad encodings.