encode the JSON response for DataTables/selectize with UTF-8

to make sure multibyte characters in DataTables/selectize work
Merge pull request #653 from yihui/bugfix/DT-encoding

encode the JSON response for DataTables/selectize with UTF-8