Fix using destroyed, temporary string's .c_str()