(added optional conversion parameter). If someone actually wants to write text files in real Unicode format, I feel that a wxMBConvUTF16 or something should be written (which would be more portable than writing wchar_t buffers directly, considering byte order and widths and such). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775