added functioality to handle c'eof' conversion to ascii for m_code