I am facing the same problem, in fact, utf8_encode and deccode do the trick for some cases but not all of them, for example Σ
can not be rendered using utf-8 decode function, the basic idea which we need is to keep html entities as they are in the string.