Encoding $string to UTF8.