IllegalCharHandler

Added support for an IllegalCharHandler.

I made small change to support an IllegalCharHandler.

Maybe there is a better way for setting a property with the new IllegalCharHandler it works, but maybe not the nicest way to do it.

Cheers,
Jakob