Change string encoding function from escape to encodeURIComponent
Encode function could not multibyte string for url.