Fix class names to make it proper Ruby code.