Explicit URI-to-string conversion

Replaced URI string cast operator with an explicit 'to_string' method.