Output the prologue file in UTF-8 when Haddock >= 2.15.

Fixes #1721.
Merge pull request #1731 from 23Skidoo/issue-1721

Output the prologue file in UTF-8 when Haddock >= 2.15.