Fix encoding in test