fix escaping of new lines