UTF-8 encode the string