fixing string conversion introduced with OpenLib

no known conversion from 'const std::string' to 'const char*'