Add support for other charsets than utf-8 for output (for executable anyway)