The magic is the comma in your name. This is a bug with Battle.net. Issuing a ban on iago,lol will process as iago, as will "iago,sucks", "iago,iscool", and "iago,isabetterprogrammerthanjoe". Simply splitting at the comma before checking access should do the trick.
I'll add this to my to-do list. Thanks!