Properly percent encode values in URI strings

This is causing an issue with CopySnapshot when the
description has spaces in it.