Simpler way to check UTF-8.

It avoids to call the `mb_check_encoding` function.
Merge pull request #156 from Hywan/string_utils

Simpler way to check UTF-8