fixed unicode problem that failed parsing htmls with special chars