Fix unicode handling in EntrySpec.to_json_dict()

This should fix issue #27.
Merge pull request #28 from bh/fix-issue-27

Fix unicode handling in EntrySpec.to_json_dict()