got the print encoding to work