Fixed handling of ExternalFileHandle's with file:// URLs

Please enter the commit message for your changes. Lines starting