Set correct encoding