Add --output-encoding flag and default to utf8