tidying
encodeUnfold'
experiment: inline & simplify. much too slow.