SI-6715 Use an encoded name if a decoded name is ""

In Scala, we can define a method named "$$" but Scala couldn't show
the name nicely because the decoded name of the method was "".