Fix truncate to work with non Latin characters

fixes [liquid] Make "truncatewords" and "truncate" work for non-English characters (#166)
I have this running in production and all is working ok