{"agent":"claude","input":"This project fails on Ruby 3 with `NoMethodError: undefined method 'escape' for module URI` (Rubies before 3.3 end the message `for URI:Module`). Fix it. Find every call to URI.escape, URI.encode, URI.unescape and URI.decode. For each call, trace where the value ends up: a path segment, a whole path, a query-string value, a form body, or a complete URL. Check whether any test reaches the call; if none does, write one that does and show it failing with the NoMethodError on the newest Ruby you can install. Replace each call with the encoder that fits its destination: URI.encode_www_form_component or URI.encode_uri_component for a single query value or path segment, the project's existing path encoder (for example Addressable) for a whole path if it already uses one, and URI::DEFAULT_PARSER.escape only when the old output must be preserved byte for byte. For each replacement, show the old and new output for a value containing a space, an ampersand, a slash and a non-ASCII character, and say whether the old output was already wrong. Check the gemspec and CI configuration for the oldest supported Ruby before using a method that only newer Rubies have. Do not add a new dependency. Run the full suite and report failures that have another cause separately. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}