tolerant encoding print in print_cli