fix the correct option for JSON and UTF-8

This patch sets the correct option for serializer JSON when charset is UTF-8

According to JSON Documentation to encode a utf-8 string option utf8 => 1 must be given.