Sanitize input to command line print driver. #35