Used ERB::Util.url_encode instead of CGI::escape