Refactor: Replace character array with std::string savename