Fixed to open all URI types, not just files.