undefine JSON_ESCAPE_WRITES, it seemed to encode too much. this may break JSON output :(