Calculate MD5 correctly.