Fix scrub params which is array not string

Without this patch scrubbing of param that is array generates

E_WARNING: strlen() expects parameter 1 to be string, array given