fix text encoding.