Use std::string instead of const char * for file name.