Fix segfault when expecting String but getting something else

This could happen in a lot of places where a Ruby object was converted
to a TagLib string. It now raises a TypeError instead of segfaulting.