Change used of NSString* to NSURL* in the public API