copy env, force newlines