Extend encoding support for ReadJSON to UTF-16 and UTF-32