set correct encoding