Fixed missing zero-termination of char data