Add JSON UTF-8 test

* Make sure that JSON extractor does not mangle UTF-8 encoding.

* Create common .hrl file to share macros.
Add UTF8 plain-text extractor test