improved html_unescape and url_unescape performance slightly