Removed uses of raw c-string manipulation functions.
Merge pull request #148 from archshift/no-cstring

Removed some uses of raw c-string manipulation functions.