LC_ALL=C to prevent the error "sed: RE error: illegal byte sequence"