Avoid PHP Warning:  json_encode(): Invalid UTF-8 sequence in argument