In Penknife and the reader, adapted all text-processing code to treat text as sequences of Unicode code points rather than sequences of UCS-2 or UTF-16 code units. Visibly, the reader now sanitizes invalid UTF-16 so that it's seen to contain U+FFFD REPLACEMENT CHARACTER instead of invalid code unit sequences.