Set generic headers in format wrapper
Automatically adjust Content-Type header in po files

Generated files usually have ASCII charset, but we store UTF-8 strings
in that.

Fixes #392