htmlentities, fixing export to excel bug