SetEncoding and join buffers