convert htmlentities to characters