Work around protected sanitize_sql_array in Rails 4 for now.