added buffer limit to MOS_IO_READ_STRING()