fixed encoding error with truncate helper (html option)
fix errors with truncate html