Enabled possibility to set up a char callback function for control chars.