Try to fix failures on platforms that can't encode the test characters.
Skip the test if encoding fails.
1 file changed