convert uri to string for metrics