Check union cases for invalid chars - relates to #567

![image](https://cloud.githubusercontent.com/assets/57396/3542512/0196c034-0858-11e4-8075-6aae264b816a.png)


It doesn't allow to use invalid chars in union cases any more.