Variant: Fix crash when casting a Variant to string

If we don't pass NULL to the length argument it makes C
code write the length at random places in memory and bad
things happens.