tests: put decodeHexInterest as a member of EncodingUtils.

Change-Id: Ib07ec50b8136f8291fcbceaf73ed68414854954d