<p dir="ltr">Re what do editors do when they see a character with the high order bit set, I&#39;ve seen a few. Some crash hard, some stop reading, acting as though it were eof. Some just display unexpected gibberish. Some seem to work, but don&#39;t write a modified version out exactly correctly.</p>

<p dir="ltr">I recall occasions when the only text editor on a system that could robustly edit the kernel as /dev/mem was gnu emacs. Or adb, of course, but that didn&#39;t give bragging rights.</p>