Fix i18n error when resource-name is non-english

When executing commands about event and resource with
non-english resource-name, error "'ascii' codec can't
decode byte...." will occur.

Root cause is that heatclient can not generate a correct
encoded url. This Patch will use quote and safe_encode
functions to implement a url-encode process.

Closes-Bug: #1249234
Change-Id: I4261fdaf6ccc60aebdb9df236f4eedce0f9baa14
Merge "Fix i18n error when resource-name is non-english"