pub fn read_string<R: Read>(reader: &mut R) -> Result<String, DecodeError>
Reads a string from the given reader.