URI has a method to do that job, nowadays. It's stable and we can swap to that method for Ruby 3.5+. So, currently, jobs fail to build in our CI.