Remove safeHead (use listToMaybe from Data.Maybe instead)

Fix split to drop delimiters