Change commitStr to commitBuf

commitBuf is char array instead of wch_t array, so we don't need to do
conversion before output.