fix for casting wxString to const char*