MMEncode is not available on Linux distros any more.
Not sure what happened to this or why but its no longer available. I used to have a script that used it to convert binary data to text for attachments on emails. Having searched high and low I came up with a new solution – use openssl.
You can do the same that you were doing with mmencode by doing the following
openssl base64 -e < $FILE