Why doesn't URI.escape escape single quotes?
URI.escape
URI.escape("foo'bar\" baz") => "foo'bar%22%20baz"