Return the actual URI written, not the one requested
Fix issue #175 by making sure that the base URI of a pipeline that comes from an input stream Input is specified (if the URI is known).