Changed so that an Encode objects may be used.

When carrying out a repeat transformation, this way is a short a little.