Correct text encoding