fix for open() not taking a std::string