fixed: incorrect(truncated) view on Cygwin for non-ASCII encoding messages

On Windows Cygwin usually non-UTF-8 and non-ASCII encoding is used. But
the code calculates length of non-UTF-8 string as the length of UTF-8.
Of course, result is almost twice less then string length is.

Quickfix is to count `strlen` for non-UTF-8 strings.