CB-5403: Backwards-compatibility with file:// urls where possible