On the transfer matrices of fractals