Replace all calls to htmlentities with htmlspecialchars.
Replace all calls to htmlentities with htmlspecialchars.

htmlentities uses the ISO-8859-1 charset by default, which breaks when
we are using UTF-8 data. It also emits entities that are invalid in XML.

git-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@2302 44740490-163a-0410-bde0-09ae8108e29a

simplesamlphp/simplesamlphp-module-saml2debug