fix byte to hex conversion for md5/sha1