fix use `file` protocol when reading with io.File