remove binary encoding when reading compiled snapshot into buffer