Fix PHP 5.6 charset-related warnings in tests