Fix common header injection script.

If the replacement content had a regexp style escape character (e.g. \1),
it would actually be used in the output. This commit escapes backslashes
so the file contents can't make regexp back-references.
Update global header.