Fix hex 3 char encoding