check-and-fix-utf8

Read potentially malformed UTF-8 data from stdin and write valid UTF-8 to stdout. Any byte sequences that are not valid UTF-8 will be dropped. This converter is useful if you have a conversion step that claims to produce UTF-8 but is in fact broken (which appears to happen surprisingly frequently with 3rd party software).