Updates for 1.8.10 release

Release Notes:
* Fixed AttributeCount and m_state problems for use under Mono. (Max Zhao)
* Decode unicode surrogate pairs. (CaptainCodeman)
* Incomplete entity codes are kept intact and escaped to produce valid HTML. (Marek Stòj)