Sanitizes headerid names with a pre-defined set of characters
replacements.