URLエンコード
ruby-1.8.7-p302 > ERB::Util.url_encode 'http://ああああ' => "http%3A%2F%2F%E3%81%82%E3%81%82%E3%81%82%E3%81%82" ruby-1.8.7-p302 > CGI.escape 'http://ああああ' => "http%3A%2F%2F%E3%81%82%E3%81%82%E3%81%82%E3%81%82" ruby-1.8.7-p302 > URI.encode 'http://ああああ' => "http://%E3%81%82%E3%81%82%E3%81%82%E3%81%82"