wxString bug fixes

wxString bug fixes for 2.8