Ensure app origin is encoded (bug 1065006)
Merge pull request #2527 from kumar303/inapp-origin

Ensure app origin is encoded (bug 1065006)