fix dictionary decoding bug when more than one encoding is used

This fixes the dictionary decoding bug that @mickaellcr was seeing
I also upgraded the snappy dependency as the latest version fixes a bug that was preventing running tests on Mac.