fix print encoding