use UriBuilder from javax.ws.rs.core

fixed #281
properly escape query parameters