This
thread over at Giantitp had some interesting ideas on how to make wish work for you, but I found the details a bit lacking in rules-foundation (for example, it was argued that one should make the wish in a verb-last variant of the (allegedly) mathematically precise modron language so that no clauses
can be left unfulfilled or something similar. I didn't go through the proposed code, because it was hard to read and I wasn't that bored.).
The first, imperfect version is on the second or third page:
[spoiler]
Okay, here's my current working attempt at an unbreakable wish. It's almost certainly still breakable at this point, but everyone here can probably think of ways to fix it as well.
Please note that the following wish is in a verb-last form of Modron (go grab the web enhancement for MotP for reference if you aren't aware of the language's peculiarities) that does not create a full and complete sentence at any point until the end (this includes any subset of symbols or words (including parts of symbols), even out of order, such that no part of the wish can be fulfilled by itself for grammatical reason). It has been reproduced here in English, because unlike all my Wizard PCs (and most of my others), I don't speak Modron.
I wish that at no point, neither during or after, in my personal time-stream, which can no longer be or have ever been interfered with, including any case that would cause it to differ from absolute time (more than it already does) or to not continue at a constant rate, can any effect or event (including the null event) that I, in my current state of mind (free from any and all magical, psionic, or other form (including mundane) of enchantment or compulsion effect) would not deem, given absolute knowledge, to be beneficial to me or that I would not, in the same state and under the same conditions, prefer the occurrence of that event to the occurrence of any other event, including the null, want to occur to me, have any effect on me or occur in any fashion at all, and that in addition when this wish would be granted, I am first told exactly how the wish would be interpreted and executed in an unambiguous manner, in Modron, and asked for my approval - if approval is not granted, the entire wish must be re-granted, including this clause, with an interpretation distinct from any way this exact wish's granting has been proposed to me and denied by me, though no part of this process (including a null part, a waiting-for-action part, or the full part [the entirety of this wish's granting]) may take any amount of time to occur.[/spoiler]
I personally prefer the lazy version of wishing for a totally legal +10^(Googolplex) cloak of charisma, if I feel the need to break the wish spell.