Added the ability to clear the allocated string in free_stringsafe