better handling of HTML entities, including illegal-but-tolerated code points between 128 and 159, and ambiguously non-delimited entities