Fix size computation of negative numbers for text integer encoding.