Splits entity decoding into two steps.
Splits entity decoding into two steps.

Doing decimal & hex decoding separately results in a nicer code
which does not refer to string matching and slicing.

YorickPeterse/oga,altmetric/oga,dfockler/oga,ttasanen/oga,YorickPeterse/oga,YorickPeterse/oga,ttasanen/oga,altmetric/oga,ttasanen/oga,ttasanen/oga,altmetric/oga,dfockler/oga,dfockler/oga,ttasanen/oga,YorickPeterse/oga,altmetric/oga,YorickPeterse/oga,altmetric/oga,dfockler/oga,dfockler/oga