Handle null strings in conversion