fix hclasp encoding