Improved support for std::wstring (EncoShared, EncoDesktop)