Update calls to std::fstream constructors (#3880)
Constructing types like `std::ifstream` with `std::string_view` is no
longer allowed; one must pass a different type, such as `std::string`. A
recent libc++ change requires this:
https://github.com/llvm/llvm-project/commit/4761e74a276ee1f38596f4849daa9d633929f2ae