set charset on mail object, not inside block

for some reason it won't work when set inside the block