Parse char classes
Fix bug in char class constructor

Fixes #1.