Merge changes If9baae21,I67223279

* changes:
  Escape non-printable characters in xeXMLWriter.
  Fix shader info log including 0-terminator.