Allow final encoding to be set