Fix Issue #90, serialization was failing with compression enabled.