Merge pull request #28 from njoubert/master

BUGFIX: Segfault if out-of-bounds string read occurs. Adds a bounds chec...