pub fn encode_message_id(id: &str) -> [u8; 32]
Encode an ID string to 32 bytes, handling pending IDs specially.