Fixed error with creating a NSURL from a path.