@@ -229,7 +229,7 @@ options =
229229 (ReqArg
230230 (\arg opt -> do
231231 text <- readFile arg
232− return opt { optIncludeInHeader = text,
232+ return opt { optIncludeInHeader = fromUTF8 text,
233233 optStandalone = True })
234234 "FILENAME")
235235 "" -- "File to include at end of header (implies -s)"
@@ -238,7 +238,7 @@ options =
238238 (ReqArg
239239 (\arg opt -> do
240240 text <- readFile arg
241− return opt { optIncludeBeforeBody = text })
241+ return opt { optIncludeBeforeBody = fromUTF8 text })
242242 "FILENAME")
243243 "" -- "File to include before document body"
244244
@@ -246,7 +246,7 @@ options =
246246 (ReqArg
247247 (\arg opt -> do
248248 text <- readFile arg
249− return opt { optIncludeAfterBody = text })
249+ return opt { optIncludeAfterBody = fromUTF8 text })
250250 "FILENAME")
251251 "" -- "File to include after document body"
252252
@@ -254,7 +254,7 @@ options =
254254 (ReqArg
255255 (\arg opt -> do
256256 text <- readFile arg
257− return opt { optCustomHeader = text,
257+ return opt { optCustomHeader = fromUTF8 text,
258258 optStandalone = True })
259259 "FILENAME")
260260 "" -- "File to use for custom header (implies -s)"