Handle multiple ways of setting an URI