Ensure the 3rd track is written even if the 2nd track isn't. Moved GetHexDump helper function to StringUtil.