Fixed encoding tests.