BUG: StataWriter uses incorrect string length

Fixes bug where StataWriter always writes strings with
a size of 244.

closes #8969
Merge pull request #8977 from bashtage/stata-writer-string-length

BUG: StataWriter uses incorrect string length