Fix an incorrect wide buffer length.

The meaning of buffer length was changed from characters count to
bytes count.  This is the only place I found so far which wildly
compares the text length to buffer length.

Closes-Issue: #8