Add config of json_encode() option to Format class

Signed-off-by: Kenji Suzuki <kenji.uui@gmail.com>
Merge pull request #1585 from kenjis/Fix_json_encode

Change default json_encode() option to be more secure