fix safe::redirect when url has a anchor