Store the length of class names

Class names should be able to contain null characters.