HTML entity encode
Escapes the five specials, and any character above ASCII.
Result
Why you would use this
The five characters HTML reserves — & < > " ' — have to be escaped or they change the markup. Everything above ASCII becomes a numeric entity, which is how you write any character in a file that has to stay plain ASCII.