Please use ```TARGETURI``` instead of ```URI``` and do ```normalize_uri(target_uri.to_s)```