fixed likely_read bug with missing null terminator for text files, made likely_read more robust