Fixed encodeURI, sendRedirect now encodes URI by default.