resolving file renaming issues.
strip markup before truncating
Merge pull request #109 from DannyJoris/7.x

resolving file renaming issues.