(PUP-2693) Fix length calculation for sq-string

The calculation of string length was done wrong for single
quoted string resulting in negative lengths.