Add a function to convert term into UTF8 mode