Null-terminate the lines in arg_env to ensure environment variable values containing embedded newlines round-trip correctly. Resolves #1018.
Merge pull request #1028 from rocallahan/null-terminate-env

Null-terminate the lines in arg_env to ensure environment variable value...