class String require 'cgi' def url_escape CGI::escape(self) end end