Handle null strings as empty strings.