fix an issue parsing uri's from clients