Fix escaping newlines and ignore other control characters so far