apps/passwd.c: Make MD5 and SHA password making EBCDIC aware