Fix encoding issue in the init subcommand (fix #50).