use annotation “@Encoded”
Ex:
@Path("{first}/get") public Response getYouWant(@Context HttpHeaders httpHeaders, @PathParam("first") String first, @QueryParam("second") @Encoded String second);