Ensure parser don't crash when parsing attributes with non-ascii characters + html entities