Created attachment 1608 [details]
reproduces the bug. contains non-ascii characters
If I start R as follows:
and then run:
x = paste(readLines('a.html'), collapse = '\n')
con = file(tempfile(), 'w', encoding = 'UTF-8')
R will hang. If I hit control-C I see many identical warnings. In practice these warnings were filling up the hard drive.
I realize this is a corner case and in fact the machine was misconfigured, it should have had a UTF-8-based locale. But the consequences were severe enough (filling up the hard drive) that I report it.