fixed access violation when using unicode strings

second parameter of wcscpy_s is not the size in bytes, but the number of elements.