http_update_encoding(+HeaderIn,
-Encoding, -HeaderOut)Allow for rewrite of the header, adjusting the encoding. We distinguish
three options. If the user announcesâtext', we always use UTF-8
encoding. If the user announces charset=utf-8 we use UTF-8 and otherwise
we use octet (raw) encoding. Alternatively we could dynamically choose
for ASCII, ISO-Latin-1 or UTF-8.