fixed string to char* conversion via const-ness