add output encoding.