Add datetime JSON encoding

Make test actually test the results

Add UTF-8 encoding

remove unecessary encoding statement and create workaround for Python 3

Make test actually test the results

Add UTF-8 encoding

remove unecessary encoding statement and create workaround for Python 3