Reinstate URL encoding for redir url parameter.

Issue #329