[eluser]Bramme[/eluser]
Okay, this has gotten beyond bizarre. I noted that other long pieces of text worked, just the one I'd been trying all the time wasn't working. So I started chopping it up in pieces, to see where it went wrong. In the end, I managed to cut it down to the following word
"curl". When there's text after curl, the whole thing fails.