fix whitespace after end of document triggering a hierarchy request error
making a real content sink for embedders