[DEV-1739] Quote 'next' url for login query string.