Added an option for output encoding setting