Convert iOS and OSX projects to ARC
Fix memory leak

See http://stackoverflow.com/questions/7895152/memory-management-nsstrings-stringwithcstringencoding
Merge pull request for ARC