Changed URI::excape to CGI.escape