Escape ascii when converting to HTML