fixed issue with utf-8 output