@nick_evans now I just need to figure out the other UTF-8 / JSON related bug, how to embed binary Strings into generated JSON. Apparently JSON is UTF-8 by default, so it will convert any binary string to UTF-8, attempt to escape special chars, and then hit an invalid byte sequence.