Fix bit shifting for readLengthEncodedInteger