[md5] have getDigest() return a std::string to simplify the caller code

Minor cleanup.