Issue #16250: Fix URLError invocation with proper args