Convert encoding to ascii.