return Response.created(
UriBuilder.fromResource(CustomerService.class)
.path("foo+bar")
.encode(true)
.build()
).build();
Returns the Location header as: http://localhost/rest/customer/foo+bar
Expected: http://localhost/rest/customer/foo%2bbar