Moved string_xform.c code into encode.c, since that code serves a similar purpose.