Use io.open for changes file as well to support UTF-8 encoding.