sanitize data from serial