Fix media URL generation for non-ASCII filenames

Characters in the filename weren't being encoded when generating
a URL, which seems to break something in the network fetching.

Change-Id: I10a18d1e5e32a4806cdae03b4a510a18eba9802b
Merge "Fix media URL generation for non-ASCII filenames"