Change autogenerated header IDs to use `-`, not `_`

Using dashes instead of underscores for autogenerated IDs better respects
the GOV.UK standard for urls.

https://insidegovuk.blog.gov.uk/url-standards-for-gov-uk/