Memory data type fix

Changed the memory from a char array to a uint8_t array, because it's
more standard.