[Jersey] UriBuilder does not properly encode query parameters?

From: Martynas Jusevi?ius <>
Date: Wed, 21 Aug 2013 13:09:05 +0300

Hey all,

I'm passing URI as query parameter to UriBuilder:

  builder.queryParam("mode", "")

I expect it to get fully URI-encoded, but what I get instead is


where slashes are left unencoded. I tried buildFromEncoded() as well,
but the result it the same.

Why this weird behavior and how can I work around it?