Fix ticket #10663 - Added setCharset method call to PHP templating engine.