Почему URI.escape не экранирует одинарные кавычки?
URI.escape
URI.escape("foo'bar\" baz") => "foo'bar%22%20baz"