Encoding/Decoding is working on small files, but seg faults on larger files