Fix a problem with --list=format-tests and Unicode formats.
Closes #919