Fix memory leak

See http://stackoverflow.com/questions/7895152/memory-management-nsstrings-stringwithcstringencoding