transform ASCII representation of special characters to HTML entities