Well if all else fails you could make a parser yourself.
I've never encountered this problem so I can't really help much, sorry.
PHP Code:
public function replaceSubstring(string, position, length, newstring) {
temp.stringa;
temp.stringb;
temp.outstring;
if (position < 0) {
return;
}
stringa = string.substring(0, position);
stringb = string.substring(position + length, -1);
outstring = stringa @ newstring @ stringb;
return outstring;
}
You can find instances of "\\n" with a function and edit them out with that function I posted if you wish.