I'm the maintainer of category encoders. Thanks for reporting this issue. There was a problem in the library, I've fixed it now in version 2.8.1
Also thanks to @Ben for forwarding the issue to the repository