Refactored load methods to eliminate use of URL.toFile(). Addressing PR #25972, reported by Bill Barker.