pub fn decode_string_map(barr: &[u8]) -> Result<HashMap<String, String>, String>
Decode a null-encoded byte slice into a map of strings.