private string UnescapeCookie(string cookie) { if (cookie.Contains("%")) { return Uri.UnescapeDataString(cookie); } return cookie; }