Security Fix: Properly escape arrays.