Use Marshal to dump string for hexdigest