Handle empty string factor levels. Close #39