Distinguished between hex and raw hex encodings.