The `open` function in Python 3.11 no longer supports 'U' mode. But it is still used in '/usr/share/blender/3.5/scripts/addons/io_anim_bvh/import_bvh.py' and '/usr/share/blender/3.5/scripts/addons/io_scene_x3d/import_x3d.py'. Reproducible: Always An upstream patch for this is avialable at 'https://projects.blender.org/blender/blender-addons/commit/eef2e476d384e463d6124c13225aaa5bd8be7631'.
Thank you for the report and providing the patch from upstream. We will provide a new update as soon as possible.