I was having a utf-8 error until I included 'rb' in line 62 of file compression/image_encoder/encoder.py. It is quick fix:)