Make sure heredoc is escaped.