Use wxNO_UNSAFE_WXSTRING_CONV and fix a bug it reveals.