escape values using column type information