```js function isEncoded(str) { return typeof str == "string" && decodeURIComponent(str) !== str; } ```