added decodeURIComponent in extractId() method for cases where Id may come encoded

added decodeURIComponent in extractId() method for cases where Id may come encoded