Make Path use StringRef instead of std::string where possible.