Encoding next url.