[BUG #7292] better escape '-' in character class