BZ914838: Fix uri parsing.

Fix parsing to correctly parse app names starting with http/https.