Fixes Connection.as_uri #252