Bring HtmlHelper.htmlEntityToInt back to life, used in VTD-XML extension