Fix small bug in URI functionality.