Absorption and reddening in the seyfert galaxy ngc 3227