handle the "URIError: URI malformed"

In some cases, decodeURIComponent(s) will throw a "URIError: URI malformed". and this change will handle it.
test case : decodeURIComponent("%u5317%u4eac").