Check union cases for invalid chars - relates to #567