Replaced the body of toHexString with a call to commons-codec
Hex.encodeHexString.