change the text encoding