Deal with file: uris properly