Since the nickname begins with a - switch prefix, when you use it with /echo the - is parsed for switches and the next word is used as the window name. If the IRC server you are using allows nicknames to begin with the - character (standard IRC networks do not allow this) you would need to cater for this in your scripts.