Make character_classes compatible with Ruby 1.8.
Merge pull request #3 from pdrakeweb/character-classes-compatibility

Make character_classes compatible with Ruby 1.8.