fix const string to char * conversion warning