encode next_url to base64 (fxxk the wall)