fix unicode output issue