We've implemented an HTTP authentication connection, encoded in C# with \[code\]Uri.EscapeDataString()\[/code\].I'm trying to make an identical java test application that does the exact same thing as the C# version, but \[code\]URLEncoder.encode(string, "UTF-8")\[/code\] adds additional encoding that isn't quite the same as the C# \[code\]Uri.EscapeDataString()\[/code\] function.What's the equivalent encoding method?