Use Marshal to dump string for hexdigest

* [ ] More benchmarking
* [ ] Tests are inconsistent across rubies