simplify parsing of uri into scheme and path