URI can generate exceptions and should be handled