@JIM. Is this a centOS system?
The Click documentation referenced in your error message mentions that
On some systems it was reported that UTF-8 has to be written as UTF8 and vice versa.
Try export LC_ALL=en_US.utf8
If that doesn't work, try export LC_ALL=en_US.UTF8
Sorry this is taking so long to work out!
Chris