replace unencodeable codepoints with html entities. fixes #562 and #285
Merge pull request #565 from dangra/562-sgmlinkextractor

replace unencodeable codepoints with html entities