[mms] Fix inserting HEAD into HTML document with Horde_Domhtml#getHead() if it doesn't already exist in the document.
[mms] Fix XSS filter removing control characters that cause certain charsets (ISO-2022-JP) to break (Bug #12015).