restore lost fix: remove unnecessary IOExceptions. An IOException when writing to StringWriter
is really rare and a really big problem
restore lost functionality: allow combined clean/serialize functionality with
the Serializer String getXmlAsString(String htmlContent, String charset) method.