encoding in generated output