Fix doubled-up hex parsing