bug in dump parser's redirect handling

Strengthened tests by adding a redirect.
return strings from n-grams

We need strings anyway, and this is slightly faster (and easier to
optimize in Cython).