Fix encoding of backslashes in arrays