fix signed byte bug in read() reported by Joe Soroka