use URI class instead of String for HTTP requests