Fix Unicode and datetime.datetime serialization issues.

Fixes: bab09
Formatting of Unicode variables broken.