Fix escaping in heredocs.