fixed newSHA1String function for 64bit architectures