Implement utf8 kind for string function