Fix shell escape in heredoc.