Added NULL checks to quiet the clang static analyzer
Fixed bug where convertStringEncoding could return NULL.
Fixed bug where init methods taking NSData assumed data was null terminated.
Merge pull request #2 from samalone/llama

Memory and static analyzer fixes