enforce limits on some problematic text fields