Check union cases for invalid chars - relates to #567

![image](https://cloud.githubusercontent.com/assets/57396/3542487/c3e1e7fa-0857-11e4-87a3-5225609d5f52.png)

It doesn't allow to use invalid chars in union cases any more.