Having both `uri` and `url` is confusing and error-prone. Better would be to just use the whole thing in one place, e.g.:
```ruby
uri = normalize_uri(target_uri.path, "reports", @payload_dir, @payload_name)
```