Item12423: fix double encoding in header on UTF-8 sites

Thanks to PiotrRoszatycki for the report and the fix upon which this fix is
based.


git-svn-id: http://svn.foswiki.org/trunk@16618 0b4bb1d4-4e5a-0410-9cc4-b2b747904278