Support -encoding parameter
Don't default to utf8 encoding, use platform encoding