Added ASN1IllegalCharacter exception.

With this change it will be way easier to check what kind of error it is.
If you're always passing string and index, character seems redundant...