fix ascii-only bug