Utilities: Fix encoding in tests.