segfaults for long paths

Pull request for issue #58.