forcing the encoding for the namespaces seems to cause problems with non-UTF-8 encoded documents