public virtual void Encode(Stream stream, Encoding encoding = null) { throw new EncodingNotSupportedException(); }