&#39; unescaped, but &#039; was not

Some back-ends, such as PHP, have a trailing 0 in unicode HTML escape sequences. Seemed a simple enough thing to add support for. http://us1.php.net/manual/en/function.htmlspecialchars.php