Allow \w in charclasses

Extend charclass syntax to permit [\w]. Resolves issue #1.