+ wxString filename = wxConvFileName->cMB2WX( text );
+ if ( filename.empty() )
+ {
+ // this is totally lame but better than silent error
+ wxLogWarning(_("This filename can't be used by wxWidgets because it contains invalid UTF-8 characters, please rename the file."));
+ return;
+ }