correct encoding