Fixed minctoraw encoding

This should close #181