Convering html entities to unicode before truncation