fix escaped entities