Allocate wchar buffers of the right length