[BUGFIX] fix handling of URI

fix #50 [BUG] Using a querystring on the uri