CFY-448 reverse encoding logic