Hack to fix JSON serialization for string fields with new lines.