test with encoding