Fix the text encoding