Fix string to char* conversion warning