Add URL encode function.