encodePrefix (NickPrefix n u h) =
    ":" <> T.encodeUtf8 n <>
        fromMaybe "" (fmap (("!" <>) . T.encodeUtf8) u) <>
        fromMaybe "" (fmap (("@" <>) . T.encodeUtf8) h)
encodePrefix (NickPrefix n u h) =
    ":" <> T.encodeUtf8 n <>
        fromMaybe "" (fmap (("!" <>) . T.encodeUtf8) u) <>
        fromMaybe "" (fmap (("@" <>) . T.encodeUtf8) h)
encodePrefix (NickPrefix n u h) =
    ":" <> T.encodeUtf8 n <>
        fromMaybe "" (fmap (("!" <>) . T.encodeUtf8) u) <>
        fromMaybe "" (fmap (("@" <>) . T.encodeUtf8) h)