Added asserts to the get/setChar methods.