Fix escaping in LightProcess protocol

The LightProcess mechanism sends newline terminated commands
over a pipe, but didn't escape newlines contained in the payload.

Reviewed By: otto

Differential Revision: D1184482