# File lib/rack/utils.rb, line 15
15:     def escape(s)
16:       s.to_s.gsub(/([^ a-zA-Z0-9_.-]+)/n) {
17:         '%'+$1.unpack('H2'*bytesize($1)).join('%').upcase
18:       }.tr(' ', '+')
19:     end