fix issue with frozen strings

In some cases, calls to MethodInfo::full_name would fail, complaining
about the class name being a frozen string.

Fix this issue by moving the method to pure ruby.

If that's deemed too costly, I guess it's always possible to dup the string at C level before concatenating, but I wanted to keep it simple.