Use more accurate pattern matching for character validation
Merge pull request #376 from techhat/issue358

Use more accurate pattern matching for character validation