Fixes wrong escaping of redirection