Extract basic uri parser and builder