Moved conversion from wxString to std::string to function to catch all these conversion in one location