Performanance and memory footprint improvement
Use builtin json_encode() for strings
Huge (roughly x10) performance impact