Ensure URLObject