[ripple/rippled] Simplify strHex: (#2668)

@mellery451 fair enough. Thanks for the info and help! I avoided using Hana or `experimental::is_detected` here to keep older compiler support. 👍