Added json-metaquery program

Improved error handling to identify bad UTF-8 input