Fix wxString to const char* conversion