Merge "Underscores etc. aren't valid in HTML IDs, so escape them properly"