Fix failures log saving/loading format incompatibility.

Support properly XML and binary log formats.