Intelligent handling of unciode to ascii