Report JSON_ERROR_UTF8 in json_encode.

Fixes https://github.com/facebook/hhvm/issues/1959.