json: Implement full UTF-8 support.

Now we really support UTF-8 encoding. Output can be either in charset
ASCII or UTF-8.
project: Update project files of VS2013.
test: Update tests.