fix test encoding