HexIntegerField: Fix a deserialization issue on Python 2

Thanks @Microserf for noticing