Redmine #6421: Fix incorrect newline mode when reading in execresult.

The output is expected to be text, so it should be read in text mode,
converting "\r\n" to "\n" in the resulting variable.
Merge pull request #1872 from kacfengine/execresult_newline_mode

Redmine #6421: Fix incorrect newline mode when reading in execresult.