silence "Warning: json_encode(): Invalid UTF-8 sequence in argument" fixes #6792