Only escape strings if they are strings