Issue #8485: PyUnicode_FSConverter() doesn't accept bytearray object anymore,
you have to convert your bytearray filenames to bytes
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 08b518a..290034a 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -1238,8 +1238,8 @@
/* --- File system encoding ---------------------------------------------- */
/* ParseTuple converter which converts a Unicode object into the file
- system encoding, using the PEP 383 error handler; bytes objects are
- output as-is. */
+ system encoding as a bytes object, using the PEP 383 error handler; bytes
+ objects are output as-is. */
PyAPI_FUNC(int) PyUnicode_FSConverter(PyObject*, void*);