Normalize toHex into TorrentUtils.