Unescapes/Decodes the string.
URI.decode ( str )
URI.unescape ( *args )
str - String to decode.
Returns unescaped/decoded version of str
require 'uri'
url = URI.decode("http%3A%2F%2Fexample.com%2F%3Fa%3Druby%20uri%20decode")
puts url
http://example.com/?a=ruby uri decode