Handle empty strings and none better in sanitize.