SCI: fix bug in text16 / GetLongest()