Fixed win32 string conversion

According to the documentation, both `WideCharToMultiByte` and `MultiByteToWideChar` return the length of the string _including_ terminating null character.