Validate section names more strictly

This avoids any problems with status files