fix construction of net::Uri class