Avoiding implicit casts from long long to NSUInteger and guarding against case where string length exceeds NSUIntegerMax.
Merge pull request #4 from vokal-isaac/master

One last tweak before tagging, I think