Add UTF-8 tests for parser and writer