Fix escaping of PHP in heredoc