Remove switchunicodeofstring

This function was no longer in use.