converted ToUnicode open source to Visual Studio