handle issue with byte being signed 8 bit in java