Maybe allow us to replace all illegal characters with out favorite easy to see markers, e.g., $ iconv --badchar=@ Have provisions for whether this is to replace one per byte, thus keeping the same file size, or one per multibyte.