I hope very much that this code indeed performs not much worse than the original custom binary format... I hope it is, if you are going to use it yourself ;)