Allow URI objects as redirect targets