Fix for #153
Added line break management to avoid bad JSON string parsing