module Excon::Utils

def escape_uri(str)

Escapes HTTP reserved and unwise characters in +str+
def escape_uri(str)
  str = str.dup
  str.force_encoding('BINARY') if FORCE_ENC
  str.gsub!(UNESCAPED) { "%%%02X" % $1[0].ord }
  str
end