Switch to std::string to avoid stupid null termination errors.