Fix text encoding.