added CGI.unescape to get rid of %2F, + etc