Fix a crashing bug when calling READCHARS with a large number.
The ANSI version implicitly handled overflow by limiting the size of the input
to a signed 32-bit integer, but the Unicode version needs an additional check
as it multipies a buffer size by sizeof(wchar_t).