implemented better solution to rails mailer problem

serialize and deserialize messages with encoded/initialize