Bugzilla #39030: Output filenames with a space resulted in "%20" in the generated file. Looks like a bug in Xalan-J. We now open the OutputStream ourselves. The two practically identical write methods pulled up into the abstract base class.