Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > webrick/httputilsライブラリ > WEBrick::HTTPUtilsモジュール > quote
quote(str)