Idn2 not working when used as baseCommand

Hi

I am attempting to use idn2 to encode utf-8 domain names as IDNA2008:

$ idn2 é.fr
xn--9ca.fr

Used as a CommandLineTool, the tool fails with utf-8 strings (ok with eg e.fr):

#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: CommandLineTool
baseCommand: idn2
arguments: ["é.fr"]
inputs: []
outputs: []
INFO [job test.cwl] /tmp/w2iwrcpk$ idn2 \
    é.fr
idn2: toAscii: could not convert string to UTF-8
WARNING [job test.cwl] exited with status: 1

Wrapping idn2 with sh works fine for some reason:

#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: CommandLineTool
baseCommand: sh
arguments: ["-c", "idn2", "é.fr"]
inputs: []
outputs: []

Using it with a container (using DockerRequirement) also works fine.

This behavior is unexpected. Am I missing something? I use cwltool. Should I open an issue?

Thanks,
Louis