Fix RPC problems (#11289)

* Only use special double writing on the server
* Write special double directly instead of adding it to the string table
* Produce proper JSON by enclosing strings with " and avoiding \x for unicode

Change-Id: I9a6370fe5032f08fe9a6f83e7183bec386b646de