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

@mellery451 just simplified the member detection a bit in https://github.com/ripple/rippled/pull/2668/commits/956882d1250e828e043772020c5eb547086dc182. Thanks for the motivation to abstract this out a bit to keep the call sites of `strHex` clean.