minor cleanup of cookie header rewriter