Checking isUtf8 function