Changed unsigned ints and chars to cstdint counterparts