Encode URIs for apps.