escape line endings before attempting to convert to json
Merge branch 'escape_line_endings_in_json' into access_node_attributes_and_parents_no_obsolete