open modify file with utf-8 encoding