Fixed issue with converting wxString to c string