Hack to support IllegalCharHandler

Added support for an IllegalCharHandler.
Merge pull request #16 from jakeri/master

Add IllegalCharHandler as mechanism for handling illegal XML characters (replace with space etc)