Fixed json_encode() + malformed characters issue.