Improved decoding of URI components (decodeURIComponent)