Scala sometimes adds a "$" suffix to the className. This fix will strip the $ suffix.