TS-2499: header_rewrite: fixed value substitution

This commit fixes substitution of following variables in add header:
    %<cquup>
    %<cqhm>
    %<cqhl>
    %<chi>
    %<port>
    %<proto>