unescape(string)

URL-decode a string.

  string = CGI::unescape("%27Stop%21%27+said+Fred")
     # => "'Stop!' said Fred"