add writeChar() support
add writeChar() support