added isUTF8.