fixing unescaped chars