Text classification based on character n-grams