For those who test the fix: The problem is easy to reproduce by creating a btrfs subvolume with a path including "\x".