This test tries to create a temporary file with a filename that contains
invalid UTF-8 bytes, which may fail if TMPDIR is located on a filesystem
that performs UTF-8 validation (such as ZFS with utf8only=on).
Resolves https://github.com/NixOS/nixpkgs/issues/269631.