Cast image_id to string before calling urllib.quote

We can't pass a string in; see Bug #1178233

Change-Id: I040c667e122d792fdcb47ee172463339068af48c
Merge "Cast image_id to string before calling urllib.quote"