Link XCTest to unit test target
[Issue #155] Convert CFStringEncoding to NSStringEncoding