Escape underscores in alert names for HTML formatting

When sending output to HTML, attempt to preserve underscores in the alert name.