Fixes text encoding