Handle unicode output properly in CLI