# File lib/fog/providers/aws.rb, line 46
    def self.escape(string)
      string.gsub( /([^-a-zA-Z0-9_.~]+)/n ) { |match| '%' + match.unpack( 'H2' * match.size ).join( '%' ).upcase }
    end