Fixing bug with smilies: http://ctrev.cyber-tm.ru/tracker/issue-130.html