Add Foundation/NSString: unexpected behavior of stringByDeletingPathExtension