Fix html to plain conversion