Once TARGETURI is being used here:

```ruby
 normalize_uri(tager_uri.to_s) 
```
could be used