It might be easier to use heredoc for Ruby, so that there is no worrying about escape characters