added ToStream() to uri extensions