Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales.
Issue #22165: Fixed test_undecodable_filename on non-UTF-8 locales.