clean up HTML entitles errors