fix for array->string conversion to pacify PHP > 5.3