fix encoding tst