Adding forward recode to encode helper