fixed broken multibyte support in Str::truncate. closes #1653