added fix for message -> sed: RE error: illegal byte sequence