Converts a pair of channelType and channelId into cid.
String CID of the given channel type and id.
if cid is not valid.