What if your target_uri.path is "/" ?  You get a double slash, right?