Strange problem with execute bash script

I try execute shell script using Keyboard Maestro.
In osx terminal and raspberry everything works good. KM shows strange error.
Look's like script works but poorly recognize characters or something.
Password saved in sha1 is correct . Please help.

KM with error:

Terminal with correct result on this same device:

Script (works on every device):

Hey Danny,

Keyboard Maestro's Execute a Shell Script action does NOT pick up anything from your system shell environment.

It's a blank slate.

See this in particular: Path in Shell Scripts

This discussion might be helpful as well:

Problem with Shell Script vs. Terminal (Git, Beyond Compare)