code: def safe_indicator(self, indicator, errors='strict'):
          
          if indicator is not None:
              try:
                  indicator = quote(self.s(str(indicator), errors=errors), safe='~')
              except KeyError:
                  indicator = quote(bytes(indicator), safe='~')
          return indicator
docs: Indicator encode value for safe HTTP request.
  
          Args:
              indicator (string): Indicator to URL Encode
              errors (string): The error handler type.
  
          Returns:
              (string): The urlencoded string