Fix to character class handling.

With this, NQP self-hosted on JVM can do tests 1..20 from t/nqp with
only two failures.