improve ProxyUtil cookie rewriting