output encoding info with --version
Fix output with non tty stdout (#108)