remove duplicated '.' in filename