Escape newlines and backslashes in plugin output

This corresponds to the implementaiton in the upstream NSCA code.
Merge djmitche/pynsca:issue12 (PR #12)