added a switch to ascii encoding for print statements so can redirect in unix