checkUtf8 improve