Bug fix (sed: RE error: illegal byte sequence)