Fix character escaping in headers