$ hachoir-grep foo tests/files/*.png
Traceback (most recent call last):
File "/home/jwilk/.local/bin/hachoir-grep", line 8, in <module>
sys.exit(main())
File "/home/jwilk/.local/lib/python3.8/site-packages/hachoir/grep.py", line 183, in main
values, pattern, filenames = parseOptions()
File "/home/jwilk/.local/lib/python3.8/site-packages/hachoir/grep.py", line 66, in parseOptions
pattern = str(arguments[0], "ascii")
TypeError: decoding str is not supported
(originally reported by Samuel Thibault in https://bugs.debian.org/969914)