Fixed an incompatable change made by upgrading to CDH4.2.0 and added escaping of newlines in strings.