Replaces heredoc/nowdoc literal with string literal.