Well, I was mystified a bit myself about this (my php knowledge is rare) but I swear it was the problem.
Just try it in a proper editor and see what happens.

Sincerely, I do not know but definitely, it works.
That is enough for me smile

I admit, I was not able to escape it properly myself so I just omitted it.
<h2>WP2PunBB Plugin - Ian Huston</h2> smile

line number: 147
<h2>Ian's WP2PunBB Plugin</h2>
You should escape the apostrophe there or it destroys the underlying code.

For those who experienced problems with Ian Huston WP2punBB plugin:

At the and of the script, in the <h2> tag an apostrophe was not escaped (Ian's WP2PunBB Plugin) and this effectively killed the script. When corrected, it works as expected.

Though, I ran into another problem. My wp uses utf-8 with iso-8859-2 collation and the posts transferred to punBB appears as unencoded utf-8.
I wonder, if it could be circumvented, anyhow.