replace decodeURIComponent with unescape to avoid malformed URI error