Use uint8_t as the type for 'byte' rather than 'char' because bytes should be unsigned

@JasonL900: better?