[net] fix utf-16 issue under win32
Merge pull request #60 from Chilledheart/patch-1

[net] fix utf-16 issue under win32