convert uri into string