allow config of encoding, default to utf8