Issue #12923: Merge FancyURLopener fix from 3.5