add encoding option to fix the chinese character issue