added unicode support in truncate function
include auto feature for truncate

With the new option "auto" for the truncate length the truncate will be done automatically
via css.