More robust BoL handling.
Make robust character class parser.