Fix Unicode and datetime.datetime serialization issues.

Fixes: bab09

Also, formatting of Unicode variables was broken.
Merge pull request #14 from mcepl/unicode_fix

Fix Unicode and datetime.datetime serialization issues.