this approach, while possibly plausible in this case, shouldn't be used in a general script - the general problem is [encoding] problem (not only Arabic)
Will, Your script not work also with english channel name. when i add more that one channel not work propably. if one channel choose only, sometimes work another stop. I try with another shell account with different system and not work.
As I said before and others enforced it, it's not the script's problem. But, you can try what Alchera suggested (read my post 5 posts above) and see if it'll work.