use a URI instance to get the github hostname