unxz implementation