make enc tailrecursive.  Remove String concat