toHex() is moved from md5.cpp to utils.h.