Bug 1163893 - Encode artifact url for app deployments

Artifact url that contains special chars will be encoded and passed by
the user. Rails controller decodes all params (including artifact url)
and any subsuquent url parsing or retrieval using curl will fail.
This fix will encode the url again after rails decoding to overcome the
limitation.