code: def decode_params_utf8(params):
      
      decoded = []
      for k, v in params:
          decoded.append((
              k.decode('utf-8') if isinstance(k, bytes) else k,
              v.decode('utf-8') if isinstance(v, bytes) else v))
      return decoded
docs: Ensures that all parameters in a list of 2-element tuples are decoded to
      unicode using UTF-8.