mark encoders transient
make double-encoding prevention generic for any Codec