Added multi-byte Unicode character support to NumberOfLinesToDisplayText().