Not sure if this is a bug, it seems like that.
There's a missing XML_UNICODE_WCHAR_T #define in the
Microsoft Visual Studio project file expatw_static.dsp,
in the "Win32 debug" build configuration.
It is correctly there for the "Win32 release"
configuration in the same project file.
In this case the expatw_static library is not correctly
compiled in debug with UTF-16 as it should be.
This problem is present in release 1.95.8 and 2.0.0.