mail module: properly set charset

Setting charset can't be done with 'headers' parameter. I've added 'charset' parameter to module and fixed code.