code: def _escape_str(value):
          
  
          if isinstance(value, int):
              return "%d" % value
          value = value.replace("\\", r'\\')
          for i, j in ts3_escape.items():
              value = value.replace(i, j)
          return value
docs: Escape a value into a TS3 compatible string
          @param value: Value
          @type value: string/int