Fix for #157, #361 - urlencode "next" get parameter, so querystring args on the "next" url are preserved.