removing 'non-printing' characters