don't try to decodeURIComponent(undefined) because that's weird