Fixes to read data function in utils; minor fix in Logger::checkError().