add utf8 header and make port configable