Set the meta charset before serializing
Merge pull request #2 from CodeFridge/feature/meta_encoding

Set the meta charset before serializing