safe_html: fix handling of broken html on Python 2.7

Also simplify sample HTML in test_safeHTML_conversion