As an answer to Luch Klooster's comment:
The problem has actually been fixed in the platform, however there was no request for an actual release yet (that would be 4.8.11)
If you run on premise, there is a workaround for this problem by getting the 2.7.1 version of the serializer.jar that comes with the Apache FOP library. However, in our cloud this is not an option and in that case you should ask for a release.
Full steps: go to http://archive.apache.org/dist/xml/xalan-j/ and download a xalan 2.7.1 binary distribution (http://archive.apache.org/dist/xml/xalan-j/xalan-j27_1-bin-2jars.zip is a direct link to the zipped one) and get the serializer.jar from the main folder. Then put that in the runtime/lib folder in your Mendix installation folder AND the server environment (replacing the existing one).