Fix bug where first char of the generated class name could be invalid.