In translate24to32, only read 3 bytes from data buffer. If we are reading 4 bytes, we are reading beyond the buffer. Fixes valgrind warnings.