Also catch IllegalFormatConversionException. Fixes 2869.