module Bundler::URI

def self.decode_www_form_component(str, enc=Encoding::UTF_8)

See Bundler::URI.encode_www_form_component, Bundler::URI.decode_www_form.

This decodes + to SP.

Decodes given +str+ of URL-encoded form data.
def self.decode_www_form_component(str, enc=Encoding::UTF_8)
  _decode_uri_component(/\+|%\h\h/, str, enc)
end