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

Fixes #1721.