code: def normalize_nfc(txt):
      
      if isinstance(txt, bytes):
          txt = txt.decode()
      return unicodedata.normalize("NFC", txt).encode()
docs: Normalize message to NFC and return bytes suitable for protobuf.
      This seems to be bitcoin-qt standard of doing things.