Fix unterminated string crash.
Merge pull request #263 from agrueneberg/fix-unterminated-string-crash

Fix unterminated string crash