Moved hardcoded values to OTPApp or resources, changed deprecated
URLEncoder methods.