output ascii and html entities