Allow setting of the encoding with chaining