Don’t encode invalid code points whose character references would refer to another code point

I.e. the code points listed in the first column of the overrides table at <http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#table-charref-overrides>.

Closes #19.
Clean up test harness HTML
Fix off-by-one error in printable ASCII range