Copy std::string to std::string not std::string::c_str()

Thanks kangz and specing for pointing this out!