A correct, simple and fast Squid URL rewrite helper