Ignore log lines which are not properly encoded to UTF-8

In some device, some log messages are not encoded to UTF-8.
It's a workaround for them.