docs: def JoinTokens(tokens):
      """Join tokens (which may be a mix of unicode and str values).
  
    See notes on unicode at the top.  This function allows mixing encoded utf-8
    byte string tokens with unicode tokens.  (Python's default encoding is ASCII,
    and we don't want to change that.)
  
    We also want to support pure byte strings, so we can't get rid of the
    try/except.  Two tries necessary.
  
    If someone really wanted to use another encoding, they could monkey patch
    jsontemplate.JoinTokens (this function).
    """
      try:
          return ''.join(tokens)
      except UnicodeDecodeError:
          # This can still raise UnicodeDecodeError if that data isn't utf-8.
          return ''.join(t.decode('utf-8') for t in tokens)